package com.shangyueshang.request;

import com.shangyueshang.model.SysUserRole;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2022/1/6 14:22
 * @version: v1.0.0
 */
@Data
public class SysUserDTO {
	
	private Long id;
	
	/**
	 * 用户名称
	 */
	@NotBlank
	private String name;
	
	/**
	 * 昵称
	 */
	private String nickName;
	
	/**
	 * 头像
	 */
	private String avatar;
	
	/**
	 * 邮箱
	 */
	@NotBlank
	private String email;
	
	/**
	 * 手机号码
	 */
	@NotBlank
	private String mobile;
	
	/**
	 * 部门机构ID
	 */
	private Long deptId;
	
	/**
	 * 推送通知token
	 */
	private String pushPlusToken;
	
	/**
	 * 状态，1启用 0禁用
	 */
	@NotNull
	@Min(value = 0)
	@Max(value = 1)
	private Integer status;
	
	/**
	 * 角色ID
	 */
	private List<SysUserRole> userRoles;
	
	/**
	 * 授权店铺
	 */
	private List<String> authorizedShops;
}
